package cn.kimming.rpc.remoting.proxy.jdk;

import cn.kimming.rpc.remoting.client.RpcClient;

import java.lang.reflect.Proxy;

public class JDKRpcClientProxyFactory {
    public static Object getRpcClientProxy(Class<?> type, RpcClient rpcClient) {
        return Proxy.newProxyInstance(type.getClassLoader(), new Class[]{type}, new JDKClientProxyInnovationHandler(rpcClient));
    }
}
